Shell.ErrorCode Property

Syntax

ErrorCode as Integer


Returns 0 if the Execute method was executed successfully. Otherwise, it returns a system-supplied error code.

On Windows, it returns -1 if execution fails.